package com.szaupd.service;

import com.szaupd.dao.QxDataRepository;
import com.szaupd.entity.QxData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QxDataService {
    @Resource
    private QxDataRepository qxDataRepository;

    /**
     * 批量插入
     * @param list
     */
    public void insertList(List<QxData> list){
        qxDataRepository.saveAll(list);
    }

    public void deleteAll(){
        qxDataRepository.deleteAll();
    }
}
